Conversation
e2e43cc to
22b6270
Compare
cf4c5fe to
5e28bb4
Compare
2a1b960 to
4ab15fe
Compare
|
Looks almost ready. There are some checkpatch complains for the last patch. Rest looks good! I would ignore the checkpatch error for the nvme_basename function. This is a bit silly as it is a clear copy from glibc. Let's keep it this way. |
Glad to hear that! Please don't merge this yet though. I'd like to make one more patch with the Alpine build. |
|
I'll wait until you mark it ready for review before I attempt to merge it. |
POSIX states that basename(3) may modify its input string. For this reason, strdup(3) is used in__nvme_transport_handle_open_direct() so that it is safe to call basename(3) on a const char*. This patch introduces an nvme_basename() function that is guaranteed to never modify its input and is thus safe to be used on string literals. It is a copy of basename(3) implementation from glibc. This change allows us to avoid one needless dynamic allocation. Signed-off-by: Michal Rábek <[email protected]>
Signed-off-by: Michal Rábek <[email protected]>
Signed-off-by: Michal Rábek <[email protected]>
Builds with musl libc get broken too often. This patch suggests a new GitHub CI build job to help maintain them being functional. Closes: linux-nvme#2565 Link: linux-nvme#2565 Signed-off-by: Michal Rábek <[email protected]>
The 'nvme-cli - uint128' test was failing when build with musl libc. The reason was that musl libc leaves the thousands separator from LC_NUMERIC empty with the fr_FR.utf-8. This patch offers a solution by skipping the test with a warning if the thousands separator cannot be obtained. Signed-off-by: Michal Rábek <[email protected]>
The long '--unified' flag of the 'diff' command is GNU specific. Although it is recognized by the Alpine Linux version of 'diff', it is expecting a numeric argument N (number of lines). This difference caused test cases using 'diff' to fail on Alpine. This patch changes that to '-u' which implies N=3 by default on both GNU-based distros and Alpine Linux. Signed-off-by: Michal Rábek <[email protected]>
This patch introduces a new CI job that builds the project with musl standard C library in the environment in which it is most commonly used - Alpine Linux. Signed-off-by: Michal Rábek <[email protected]>
|
I've released the ci-containers and there is a little fallout. I'll look into it next week unless you beat me to it :) |
|
Thanks! |
This series of patches contributes to solving the recurring problem with build fails with
musllibc. It includes proposed build configuration and a new CI build job.Things to check before removing draft status:
muslbuild?